import Vue from 'vue'
import Router from 'vue-router'
const LoginPage = () => import('@/page/loginPage')
const HomePage = () => import('@/page/homePage')
const MdPage = () => import('@/page/mdPage')
const NoteListPage = () => import('@/page/noteListPage')
const noteDetailPage = () => import('@/page/noteDetailPage')

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: LoginPage
    },
    {
      path: '/home',
      name: 'homePage',
      component: HomePage
    },
    {
      path: '/md',
      name: 'mdPage',
      component: MdPage
    },
    {
      path: '/list',
      name: 'list',
      component: NoteListPage
    },
    {
      path: '/detail',
      name: 'detail',
      component: noteDetailPage
    }
  ]
})
